package com.zhentao.tot.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 自媒体图文内容信息对象 wm_news
 * 
 * @author ruoyi
 * @date 2025-04-17
 */
public class WmNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 自媒体用户ID */
    @Excel(name = "自媒体用户ID")
    private Integer userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图文内容 */
    @Excel(name = "图文内容")
    private String content;

    /** 文章布局 0无图文章 1 单图文章 2多图文章 */
    @Excel(name = "文章布局 0无图文章 1 单图文章 2多图文章")
    private Integer type;

    /** 图文频道ID */
    @Excel(name = "图文频道ID")
    private Long channelId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String labels;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitedTime;

    /** 当前状态 0草稿 1提交(待审核) */
    @Excel(name = "当前状态 0草稿 1提交(待审核)")
    private Integer status;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setChannelId(Long channelId) 
    {
        this.channelId = channelId;
    }

    public Long getChannelId() 
    {
        return channelId;
    }

    public void setLabels(String labels) 
    {
        this.labels = labels;
    }

    public String getLabels() 
    {
        return labels;
    }

    public void setSubmitedTime(Date submitedTime) 
    {
        this.submitedTime = submitedTime;
    }

    public Date getSubmitedTime() 
    {
        return submitedTime;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("type", getType())
            .append("channelId", getChannelId())
            .append("labels", getLabels())
            .append("createTime", getCreateTime())
            .append("submitedTime", getSubmitedTime())
            .append("status", getStatus())
            .toString();
    }
}
